//
//  YYUser.m
//  优悦一族
//
//  Created by MYO on 16/3/28.
//  Copyright © 2016年 umed. All rights reserved.
//

#import "YYUser.h"

@implementation YYUser



+(instancetype)userInfoWithDict:(NSDictionary *)dict {
    
    return [[self alloc] initWithDict:dict];

}

-(instancetype)initWithDict:(NSDictionary *)dict {
    
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        
        self.user_id = value;
    }
}

@end
